#ifndef ENEMY1_H
#define ENEMY1_H

#include "config.h"
#include <QPixmap>
#include <QRect>
#include "bullet2.h"

class Enemy1
{
public:
    Enemy1();

    /* 更新敌机坐标 */
    void updatePosition();
    void shoot();

public:

    //敌机资源
    QPixmap m_Plane;
    QPixmap m_PlaneDown[ENEMY1_DOWN_NUM];
    QPixmap *p_Plane;
    QPixmap m_PlaneHit;

    //坐标
    int m_X;
    int m_Y;

    //速度
    int m_Speed;

    //矩形框
    QRect m_Rect;

    //是否闲置
    bool m_Free;

    //爆炸状态
    int m_Down;
    //攻击间隔计数
      int m_Interval;
    //弹夹
    Bullet2 m_Bullets[BULLET2_NUM];

};

#endif // ENEMY1_H
